package cn.joyfulmedia.common.result;

/**
 * 模块异常编码
 *
 * @author yujun
 * @create 2016-11-08 14:40
 */
public enum ModuleResultCode {

    /**
     * 服务模块
     */
    EXAM_SERVER(1000000),
    /**
     * 考试api模块
     */
    EXAM_API(1100000),

    ;


    private final int code;

    ModuleResultCode(int code) {
        this.code = code;
    }

    public static void main(String[] args) {
        System.out.println(ModuleResultCode.EXAM_API.getCode());
    }

    /**
     * Get the int id of this enum id
     */
    public int getCode() {
        return code;
    }
}
